//检索对象中的元素
var a={
    "" : 0,
    " " : 1,
    "1323" : 2,
    b :'dyx'
};
console.log(a[""]);
console.log(a[" "]);
console.log(a.b);

//原型
 function student(){
    
}//构造函数

let str=new student(),
    str1=new student();
//对象

//对象原型

student.prototype.age=20;
str.age =30;

console.log(str.age);//30
console.log(str1.age);//20
console.log(typeof student)//function
console.log(typeof str)//abject
console.log(student.prototype);
console.log(student.prototype.constructor ==student)//true

console.log(delete student.prototype.age);//true
console.log(str1.age);//undefined



